<?php if ( ! defined('DIR')) exit('No direct script access allowed');

	@require(DIR.'/Core/Control.class.php');
	@require(DIR.'/Core/Module.class.php');
	@require(DIR.'/Config/load.php');
	@require(DIR.'/Config/config.php');
	 
	 function &Load($name,$path){
		if(file_exists(DIR.'/'.$path.'/'.$name.'.class.php')){
			require(DIR.'/'.$path.'/'.$name.'.class.php');
			return new $name;	
		}	
	 }
	 
	 function &getInstance(){
		return Control::get_instance();	 
	 }
	 
	function getConfig($name){
		global $$name;
		return $$name;	 
	}
	
?>